package com.electronsys.emp.action;

import com.electronsys.emp.service.EmpDaoService;
import com.electronsys.pojo.Employee;
import com.opensymphony.xwork2.ActionSupport;

public class UpdateAction extends ActionSupport {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1249906953310622003L;
	public Integer empId;
	public EmpDaoService empDaoService;
	private Employee emp;
	public String execute(){
		
		emp = empDaoService.empInforService(empId);
		
		return "success";
	}
	public Employee getEmp() {
		return emp;
	}
	public void setEmp(Employee emp) {
		this.emp = emp;
	}
	public Integer getEmpId() {
		return empId;
	}
	public void setEmpId(Integer empId) {
		this.empId = empId;
	}
	public void setEmpDaoService(EmpDaoService empDaoService) {
		this.empDaoService = empDaoService;
	}
}
